/* GUI CONVERTED from rcpsmtc.p (converter v1.76) Fri May  3 13:21:25 2002 */
/* rcpsmtc.p - Release Management Customer Schedules                          */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.11 $                                                          */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 7.0    LAST MODIFIED: 03/26/92           BY: WUG *F323*          */
/* REVISION: 7.0    LAST MODIFIED: 04/21/92           BY: WUG *F416*          */
/* REVISION: 7.3    LAST MODIFIED: 09/25/92           BY: WUG *G094*          */
/* REVISION: 7.3    LAST MODIFIED: 12/16/92           BY: rwl *G452*          */
/* REVISION: 7.3    LAST MODIFIED: 01/14/93           BY: WUG *G462*          */
/* REVISION: 7.3    LAST MODIFIED: 10/18/93           BY: WUG *GG36*          */
/* REVISION: 7.3    LAST MODIFIED: 11/05/94           BY: rxm *GN17*          */
/* REVISION: 7.3    LAST MODIFIED: 03/29/95           BY: bcm *G0JS*          */
/* REVISION: 8.6E     LAST MODIFIED: 02/23/98   BY: *L007* A. Rahane          */
/* REVISION: 8.6E     LAST MODIFIED: 05/20/98   BY: *K1Q4* Alfred Tan         */
/* REVISION: 8.6E     LAST MODIFIED: 10/04/98   BY: *J314* Alfred Tan         */
/* REVISION: 9.1      LAST MODIFIED: 03/24/00   BY: *N08T* Annasaheb Rahane   */
/* REVISION: 9.1      LAST MODIFIED: 08/12/00   BY: *N0KP* Mark Brown         */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* Revision: 1.10     BY: Jean Miller          DATE: 03/22/01  ECO: *P008*    */
/* $Revision: 1.11 $    BY: Katie Hilbert        DATE: 04/15/02  ECO: *P03J*    */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/
/* SCHEDULE MAINTENANCE DETAIL SUBPROGRAM */

/* DISPLAYS/MAINTAINS CUSTOMER LAST RECEIPT INFO */

{mfdeclre.i}
{gplabel.i} /* EXTERNAL LABEL INCLUDE */

define input parameter sch_recid as recid.
define input parameter disp_only like mfc_logical.

define variable lr_asn     like sch_lr_asn     extent 0.
define variable lr_date    like sch_lr_date    extent 0.
define variable lr_time    like sch_lr_time    extent 0.
define variable lr_qty     like sch_lr_qty     extent 0.
define variable lr_cum_qty like sch_lr_cum_qty extent 0.

define variable i as integer.

FORM /*GUI*/ 
   lr_asn
   lr_date
   lr_time
   lr_qty
   lr_cum_qty
with frame lastreceipt width 80 attr-space 7 down
title color normal (getFrameTitle("CUSTOMER_RECEIPTS",25)) THREE-D /*GUI*/.


/* SET EXTERNAL LABELS */
setFrameLabels(frame lastreceipt:handle).

find sch_mstr where recid(sch_mstr) = sch_recid exclusive-lock.

do i = 1 to 7:

   display
      sch_lr_asn[i]     @ lr_asn
      sch_lr_date[i]    @ lr_date
      sch_lr_time[i]    @ lr_time
      sch_lr_qty[i]     @ lr_qty
      sch_lr_cum_qty[i] @ lr_cum_qty
   with frame lastreceipt.

   if i < 7 then down 1 with frame lastreceipt.

end.

up 6 with frame lastreceipt.

do i = 1 to 7 on error undo, leave on endkey undo, leave:
/*GUI*/ if global-beam-me-up then undo, leave.


   prompt-for
      lr_asn
      lr_date
      lr_time
      lr_qty
      lr_cum_qty
   with frame lastreceipt.

   assign
      sch_lr_asn[i] = input frame lastreceipt lr_asn
      sch_lr_date[i] = input frame lastreceipt lr_date
      sch_lr_time[i] = input frame lastreceipt lr_time
      sch_lr_qty[i] = input frame lastreceipt lr_qty
      sch_lr_cum_qty[i] = input frame lastreceipt lr_cum_qty.

   if i < 7 then down 1 with frame lastreceipt.

end.
/*GUI*/ if global-beam-me-up then undo, leave.

